package com.example.j2025_11_11;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class J20251111Application {

    public static void main(String[] args) {
       ApplicationContext context = SpringApplication.run(J20251111Application.class, args);

        Students stduents = (Students) context.getBean("students");
//        Stduent stduent =(Stduent) context.getBean("s");
//        stduent.print();
//        System.out.println(stduent.getName());
       stduents.print();
    }

}
